Display Port VLAN Information

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Display the port VLAN information:

    show interfaces gigabitEthernet vlan <1-4059>

Example

Switch:1>enable
Switch:1#show interfaces gigabitethernet vlan
====================================================================================================
                                   Port Vlans
====================================================================================================
PORT          DISCARD DISCARD   DEFAULT VLAN         PORT     UNTAG    DYNAMIC UNTAG  FA/
NUM   TAGGING TAGFRAM UNTAGFRAM VLANID  IDS          TYPE     DEFVLAN  VLANS   VLANS  Flex UNI
----------------------------------------------------------------------------------------------------
1/1   disable false   false     1       1            normal   disable  P        1     disable
1/2   enable  false   false     1       1,3,10       normal   disable  P        1,10  disable
1/3   enable  false   false     1       1,10,20      normal   disable  P              disable
----------------------------------------------------------------------------------------------------
DYNAMIC VLAN Legend:
P=Protocol enabled.

Variable Definitions

The following table defines parameters for the show interfaces command.

Variable

Value

{slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}

Identifies the slot and port in one of the following formats:
  • a single slot and port (slot/port)

  • a range of slots and ports (slot/port-slot/port)

  • a series of slots and ports (slot/port,slot/port,slot/port)

  • all ports on the same slot (slot/all)

  • all ports on the switch (all)

If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

<1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.